/**
 * 讨论的数据模拟
 * @time 2018/04/14
 */
import {
  getTime,
  getOneImage,
  getCword,
  getBool,
} from './index';

export default function getListData(length = 10) {
  const data = [];
  for (let i = 0; i < length; i++) {
    data.push({
      avatar: getOneImage(),
      message: getCword(8, 100),
      self: getBool(),
      time: getTime(-i),
    });
  }
  return data;
}
